<include file="Common:header" />
<div class="layui-card layadmin-header"> <span class="layui-breadcrumb" lay-separator="/"> <a href="{:U('Index/welcome')}">首页</a><a href="{:U('Recycle/index')}">回收站管理</a> </span> </div>
<div class="layui-fluid pt-10 pr-10 pl-20">
	<div class="layui-btn-group demoTable">
		<button class="layui-btn" data-type="deleteData">删除</button>
	</div>
	<table class="layui-table mt-5" id="dataList" lay-filter="dataFilter">
	</table>
</div>
<script type="text/html" id="bar">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="remove"><i class="layui-icon layui-icon-refresh"></i>还原</a>
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
	</div>
</script>
<script type="text/html" id="createdTpl">
{{#  
	var fn = function(s){
		var time = new Date(parseInt(s)*1000);
		var y = time.getFullYear();
		var m = time.getMonth()+1;
		var d = time.getDate();
		var h = time.getHours();
		var mm = time.getMinutes();
		var s = time.getSeconds();
		return y + '-' + (m<10?'0'+m : m)+'-' +(d<10?'0'+d : d);
	}; 
}}
{{ fn(d.created) }}
</script>
<script>
layui.use(['recycle'], function(){
	var recycle = layui.recycle;
	recycle.init();
});
</script>
<include file="Common:footer" />




<!--include file="Common:header" />
<div id="manager">
	<h2 class="title">菜 单 功 能 管 理</h2>
	<p>管理导航：<a href="{:U('Recycle/index')}">回收站管理</a></p>
</div>
<form name="listForm" id="listForm" method="post" action="{:U('Recycle/delete')}">
<table width="100%" class="content_table">
	<tr class="title">
		<td><input type="checkbox" id="checkAll"> 全选</td>
		<td><b>ID</b></td>
		<td><b>title</b></td>
		<td><b>created</b></td>
		<td><b>deleted</b></td>
		<td><b>单项操作</b></td>
	</tr>
	<foreach name="data" item="val">
	<tr class="content">
		<td><input name="id[]" type="checkbox" value="{$val['id']}"></td>
		<td>{$val['id']}</td>
		<td>{$val['title']}</td>
		<td>{$val['created']|date="Y-m-d",###}</td>
		<td>{$val['deleted']|date="Y-m-d",###}</td>
		<td><a href="{:U('Recycle/remove',array('id'=>$val['id']))}">还原</a>|<a href="javascript:if (confirm('确定删除?')) location='{:U('News/delete',array('id'=>$val['id']))}'">删除</a></td>
	</tr>
	</foreach>
	<tr>
		<td><input name="del" type="button" value="删 除" class="btn blue" /></td>
		<td colspan="8" class="pages">{$pagerData['linkhtml']}</td>
	</tr>
</table>
</form>
<include file="Common:footer" /-->